<?
/**
* Copyright (c) 2002-2007 BioWare Corp.
* http://www.bigdaddymonitor.org
*
* This file is part of the BigDaddy Monitoring
* program. It is free software distributed under
* the terms of the BSD License. It is ditributed
* in the hopes that it will be useful, but
* WITHOUT ANY WARRANTY; without event the implied
* warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE.
*
* The BSD License is available from:
* http://www.opensource.org/licenses/bsd-license.php
**/
?><p><a href="<?=$_SERVER["PHP_SELF"];?>?page=listroleactions">List of Role Types</a></p>

<form method="post" action="<?=$_SERVER["PHP_SELF"];?>">
<table border="0" cellpadding="0" cellspacing="0" class="app_table">
<tr class="app_row">
    <td>
	<b>Name</b>
    </td>
    <td>
	<input type="text" name="name" value="<?=$aInfo["name"];?>" class="app_textinput" size="30">
    </td>
</tr>
<tr class="app_row">
    <td>
	<b>Group ID</b>
    </td>
    <td>
    <input type="text" name="groupID" value="<?=$aInfo["groupID"];?>" class="app_textinput" size="30">
    <br>
    <span class="smalltext">or choose from the groups below (typing above will override selection)</span>
    <br>
    <select name="selectGroupID" size="1" class="app_select">
    <option></option>
    <?
    
    $aGroups=$RoleAdmin->GetRoleActionGroupIDs();
    
    foreach ($aGroups as $sGroup)
    {
        if ($sGroup==$aInfo["groupID"])
        {
            $s=" selected";
        }
        else
        {
            $s="";
        }
        echo '<option value="'.$sGroup.'"'.$s.'>'.$sGroup.'</option>';
    }
    ?>
    
    </select>
    </td>
</tr>
<tr class="app_row">
    <td>
	<b>Type</b>
    </td>
    <td>
	<input type="text" name="type" value="<?=$aInfo["type"];?>" class="app_textinput" size="30">
    </td>
</tr>
<tr class="app_row">
    <td colspan="2">
	<input type="hidden" name="actionID" value="<?=$aInfo["ID"];?>">
	<input type="hidden" name="page" value="setroleaction">
	<input type="submit" name="submit" class="app_submit" value="Submit">
    </td>
</tr>
</table>
</form>


